package com.gagakuai.bpm.dao.mapper.camunda;




import com.gagakuai.bpm.domian.entity.camuda.HmilyCancelLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HmilyCancelLogMapper {

    int deleteByPrimaryKey(String txNo);

    int insert(HmilyCancelLog record);

    int insertOrUpdate(HmilyCancelLog record);

    int insertOrUpdateSelective(HmilyCancelLog record);

    int insertSelective(HmilyCancelLog record);

    HmilyCancelLog selectByPrimaryKey(String txNo);

    int updateByPrimaryKeySelective(HmilyCancelLog record);

    int updateByPrimaryKey(HmilyCancelLog record);

    int updateBatch(List<HmilyCancelLog> list);

    int batchInsert(@Param("list") List<HmilyCancelLog> list);






    /*
     * 保存Cancel操作事务日志
     */
    int saveCancelLog(@Param("txNo") String txNo);

    /*
     * 检查是否存在Cancel操作日志，用于幂等
     */
    Integer existsCancelLog(@Param("txNo") String txNo);
}